public class num {
    int[] ans = new int[4];
    public  int[]  radom(){
        ans[0] = (int)(Math.random()*10);
        ans[1] = (int)(Math.random()*10);
        ans[2] = (int)(Math.random()*10);
        ans[3] = (int)(Math.random()*10);
        return ans;
    }
    public static void main(String[] args) {
        num num = new num();
        int[] ans = num.radom();
        for(int i : ans){
            System.out.println(i);
        }
    }
}
